 <%@ taglib prefix="wctags" tagdir="/WEB-INF/tags"%>
 <%@ taglib uri="http://www.ptc.com/windchill/taglib/picker" prefix="p"%>
 <%@ taglib uri="http://www.ptc.com/windchill/taglib/components" prefix="jca"%>
 <%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
 <%@ include file="/netmarkets/jsp/components/beginWizard.jspf"%>

<script type="text/javascript">
<!--

String.prototype.endWith=function(str){
    if(str==null||str==""||this.length==0||str.length>this.length)
      return false;
    if(this.substring(this.length-str.length)==str)
      return true;
    else
      return false;
    return true;
}

function customCallBackForCusUser(objects, pickerID) {
    window.opener.document.getElementById(pickerID).value = objects.pickedObject[0].name;
}

//-->
</script>

 
<%
    String sOid= request.getParameter("type");
    request.setAttribute("sOid",""+sOid);
%>

    <wctags:userPicker id="${sOid}" inline="true"  pickerTitle="Find User" 
            componentId="pickerSearch" multiSelect="false" pickerCallback="customCallBackForCusUser" pickedAttributes="fullName,name"/>
    
    
    
<script type="text/javascript">
<!--
//document.getElementById("searchTypeChooser_b").href = "javascript:return false;";;
//-->
</script>
<%@ include file="/netmarkets/jsp/util/end.jspf"%>